<html>
<head><meta charset="utf-8"><title>Oh C · wg-secure-code · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/index.html">wg-secure-code</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html">Oh C</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="194721949"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194721949" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194721949">(Apr 20 2020 at 19:31)</a>:</h4>
<p><a href="https://github.com/rust-lang/libbacktrace/commit/5c88e094a691bb803d4bba342403a10459abad9e" title="https://github.com/rust-lang/libbacktrace/commit/5c88e094a691bb803d4bba342403a10459abad9e">https://github.com/rust-lang/libbacktrace/commit/5c88e094a691bb803d4bba342403a10459abad9e</a></p>



<a name="194721959"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194721959" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194721959">(Apr 20 2020 at 19:31)</a>:</h4>
<p>heh</p>



<a name="194721981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194721981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194721981">(Apr 20 2020 at 19:31)</a>:</h4>
<p>that's my "favorite" thing ever in C: off-by-one errors calculating a length</p>



<a name="194722220"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194722220" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Gaynor <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194722220">(Apr 20 2020 at 19:34)</a>:</h4>
<p>Is this a bug in the rust fork, or does it need to get submitted to upstream?</p>



<a name="194722268"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194722268" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194722268">(Apr 20 2020 at 19:34)</a>:</h4>
<p><a href="https://github.com/ianlancetaylor/libbacktrace/pull/40" title="https://github.com/ianlancetaylor/libbacktrace/pull/40">https://github.com/ianlancetaylor/libbacktrace/pull/40</a></p>



<a name="194722631"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194722631" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194722631">(Apr 20 2020 at 19:37)</a>:</h4>
<p>some more context <a href="https://github.com/rust-lang/backtrace-rs/issues/310" title="https://github.com/rust-lang/backtrace-rs/issues/310">https://github.com/rust-lang/backtrace-rs/issues/310</a></p>



<a name="194734068"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194734068" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Gaynor <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194734068">(Apr 20 2020 at 21:12)</a>:</h4>
<p>I'm told it's possible to write safe C if you're just knowledgeable and diligent enough. I guess Ian isn't good enough at C.  (Extreme sarcasm, in case it's not obvious)</p>



<a name="194735955"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194735955" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194735955">(Apr 20 2020 at 21:28)</a>:</h4>
<p>this whole thing has me wanting to switch over to gimli even more</p>



<a name="194809564"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194809564" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Shnatsel <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194809564">(Apr 21 2020 at 14:28)</a>:</h4>
<p>gimli uses libgoblin internally, there was a safety-dance PR to it with a bunch of improvements but it stalled</p>



<a name="194809635"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194809635" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Shnatsel <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194809635">(Apr 21 2020 at 14:29)</a>:</h4>
<p>so there's a bunch of easy safety improvements to make to that stack if anyone's willing</p>



<a name="194810006"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194810006" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194810006">(Apr 21 2020 at 14:31)</a>:</h4>
<p><code>gimli</code> doesn't use any object file parser. addr2line uses <code>object</code>, not <code>goblin</code>.</p>



<a name="194810405"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194810405" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Shnatsel <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194810405">(Apr 21 2020 at 14:34)</a>:</h4>
<p>oh, then I must be thinking of some other higher-level library that depended on both</p>



<a name="194810465"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194810465" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194810465">(Apr 21 2020 at 14:34)</a>:</h4>
<p>It seems to be <code>backtrace</code> itself: <a href="https://github.com/gimli-rs/object/issues/215" title="https://github.com/gimli-rs/object/issues/215">https://github.com/gimli-rs/object/issues/215</a></p>



<a name="194810869"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Oh%20C/near/194810869" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Shnatsel <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Oh.20C.html#194810869">(Apr 21 2020 at 14:37)</a>:</h4>
<p><code>object</code> crate looks nice at a glance, would probably make for a nice proof-of-concept for <a href="https://github.com/rust-lang/rfcs/pull/2801" title="https://github.com/rust-lang/rfcs/pull/2801">https://github.com/rust-lang/rfcs/pull/2801</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>